<?php

require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/DBClass.php';
require_once 'lib/Account.php';
require_once 'lib/Halaman.php';
require_once 'lib/Index.php';


$smarty = new Smarty();
$acc = new Account();
$halaman = new Halaman();
$index = new Index();

$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';

$data = $halaman->get_all_halaman();
$smarty->assign('page','main.html');
$smarty->assign('halaman', $data);

$news_bg = $index->get_news_bg();
$smarty->assign('news_bg', $news_bg);

$news_md = $index->get_news_md();
$smarty->assign('news_md', $news_md);

$ent = $index->get_ent();
$smarty->assign('ent', $ent);

$lifestyle = $index->get_lifestyle();
$smarty->assign('lifestyle', $lifestyle);

$event = $index->get_event();
$smarty->assign('event', $event);

$fashion = $index->get_fashion();
$smarty->assign('fashion', $fashion);

$culture = $index->get_culture();
$smarty->assign('culture', $culture);

$local = $index->get_local();
$smarty->assign('local', $local);

$lol = $index->get_lol();
$smarty->assign('lol', $lol);


$smarty->display('index.html');
